package com.lanyou.cook.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.lanyou.cook.common.Constants;

/**
 * 用户Session相关业务的控制层
 * @author 仇伟业
 *
 */
@Controller
@RequestMapping(Constants.BASE_URL_API + "/security")
public class SecurityController {

	/**
	 * 获取以BASE64编码后的公钥
	 * @return 类型:String 如题
	 */
	@RequestMapping(value = "/publicKey", produces = "text/plain")
	@ResponseBody
	public String getPublicKey() {
		return Constants.PUBLIC_KEY_BASE64;
	}
}
